package com.xiaoh.dormitoryrepairreportbackend.model.dto.material;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 物料更新请求
 */
@Data
@Schema(description = "物料更新请求")
public class MaterialUpdateRequest implements Serializable {

    @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "物料ID不能为空")
    private Integer id;

    @Schema(description = "物料名称")
    private String name;

    @Schema(description = "规格型号")
    private String model;

    @Schema(description = "单位(个/米/套)")
    private String unit;

    @Schema(description = "库存数量")
    private Integer stockCount;

    @Schema(description = "库存预警值")
    private Integer warningThreshold;

    private static final long serialVersionUID = 1L;
}
